unix {
  UI_DIR = .ui
  MOC_DIR = .moc
  OBJECTS_DIR = .obj
}

TEMPLATE	= app
LANGUAGE	= C++
TARGET	 = YangEdit
CONFIG	+= qt warn_on debug
LIBS         += -lqscintilla2 -lQtXml

##############################################
unix:!macx {
isEmpty( PREFIX ) {
    PREFIX=/usr
}
target.path = $${PREFIX}/bin
INSTALLS = target


DEPENDPATH +=  readcodetool  
INCLUDEPATH +=  . readcodetool/includes parser

HEADERS	= Scintilla.h \
	  Pref.h  \ 
	  LexerUtil.h\	
	  FindDirDialog.h \
	  TabWidget.h \
	  YangEdit.h \
	  FindText.h\
	  GoToLine.h \	
	  ReplaceTextDialog.h \	
	  ChooseFile.h \
	  MacrosManger.h\	
	  readcodetool/includes/error.h \
          readcodetool/includes/list.h \
          readcodetool/includes/myregex.h \
          readcodetool/includes/node.h \
          readcodetool/includes/pfunction.h \
          readcodetool/includes/public.h \
          readcodetool/includes/readfile.h \
          readcodetool/includes/snode.h \
	  ds/tree.h \
	  RclXml.h \
	  Config.h 
	 # parser/clang.bison.h \

SOURCES	= main.cpp \
	  Scintilla.cpp \	
	  Pref.cpp \
	  LexerUtil.cpp\
	  FindDirDialog.cpp \
	  TabWidget.cpp \	
	  YangEdit.cpp  \
	  FindText.cpp \
	  GoToLine.cpp \
	  ReplaceTextDialog.cpp \
	  ChooseFile.cpp \	
	  MacrosManger.cpp \	
	  readcodetool/src/error.cpp \
          readcodetool/src/myregex.cpp \
          readcodetool/src/pfunction.cpp \
          readcodetool/src/readfile.cpp \
	  ds/tree.cpp \
	  RclXml.cpp  
	  #parser/clang.lex.c \
	  #parser/clang.bison.c \

FORMS       = YangEdit.ui FindDir.ui dlgFindText.ui GoToLine.ui \
	      Replace.ui ChooseFile.ui	
image = image/tick.png
}

FORMS += \
    Option.ui

HEADERS += \
    OptionDialog.h

SOURCES += \
    OptionDialog.cpp
